// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

/** 获取租户信息 GET /fds/auth/getTenant */
export async function getTenantUsingGET(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTenantUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.Pinyin_73>('/fds/auth/getTenant', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取登录人信息 GET /fds/auth/info */
export async function infoUsingGET(options?: { [key: string]: any }) {
  return request<API.LoginUser>('/fds/auth/info', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 登录 POST /fds/auth/login */
export async function loginUsingPOST(body: API.LoginParam, options?: { [key: string]: any }) {
  return request<API.LoginVO>('/fds/auth/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 登出 POST /fds/auth/logout */
export async function logoutUsingPOST(options?: { [key: string]: any }) {
  return request<boolean>('/fds/auth/logout', {
    method: 'POST',
    ...(options || {}),
  });
}
